package com.ruoyi.project.mgcmanage.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.List;
import java.util.Objects;

public class Medicine  extends BaseEntity {
    private Integer mid;
    private String medicineName;
    private String medicineId;
    private String medicineType;
    private String medicineOtcType;
    private String medicineCompany;
    private int medicinePrice;
    private int medicineNum;
    private int medicineMaxValue;
    private int medicineHuanSuan;
    private String medicineKeyword;
    private int medId;
    private String  status;

    private List<MedFactory> lists;

    public Medicine() {
    }


    public String getMedicineName() {
        return medicineName;
    }

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public String getMedicineKeyword() {
        return medicineKeyword;
    }

    public void setMedicineKeyword(String medicineKeyword) {
        this.medicineKeyword = medicineKeyword;
    }

    public List<MedFactory> getLists() {
        return lists;
    }

    public void setLists(List<MedFactory> lists) {
        this.lists = lists;
    }

    public void setMedicineName(String medicineName) {
        this.medicineName = medicineName;
    }

    public String getMedicineId() {
        return medicineId;
    }

    public void setMedicineId(String medicineId) {
        this.medicineId = medicineId;
    }

    public String getMedicineType() {
        return medicineType;
    }

    public void setMedicineType(String medicineType) {
        this.medicineType = medicineType;
    }

    public String getMedicineOtcType() {
        return medicineOtcType;
    }

    public void setMedicineOtcType(String medicineOtcType) {
        this.medicineOtcType = medicineOtcType;
    }

    public String getMedicineCompany() {
        return medicineCompany;
    }

    public void setMedicineCompany(String medicineCompany) {
        this.medicineCompany = medicineCompany;
    }

    public int getMedicinePrice() {
        return medicinePrice;
    }

    public void setMedicinePrice(int medicinePrice) {
        this.medicinePrice = medicinePrice;
    }

    public int getMedicineNum() {
        return medicineNum;
    }

    public void setMedicineNum(int medicineNum) {
        this.medicineNum = medicineNum;
    }

    public int getMedicineMaxValue() {
        return medicineMaxValue;
    }

    public void setMedicineMaxValue(int medicineMaxValue) {
        this.medicineMaxValue = medicineMaxValue;
    }

    public int getMedicineHuanSuan() {
        return medicineHuanSuan;
    }

    public void setMedicineHuanSuan(int medicineHuanSuan) {
        this.medicineHuanSuan = medicineHuanSuan;
    }

    public int getMedId() {
        return medId;
    }

    public void setMedId(int medId) {
        this.medId = medId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    public Medicine(Integer mid, String medicineName, String medicineId, String medicineType, String medicineOtcType, String medicineCompany, int medicinePrice, int medicineNum, int medicineMaxValue, int medicineHuanSuan, String medicineKeyword, int medId, String status, List<MedFactory> lists) {
        this.mid = mid;
        this.medicineName = medicineName;
        this.medicineId = medicineId;
        this.medicineType = medicineType;
        this.medicineOtcType = medicineOtcType;
        this.medicineCompany = medicineCompany;
        this.medicinePrice = medicinePrice;
        this.medicineNum = medicineNum;
        this.medicineMaxValue = medicineMaxValue;
        this.medicineHuanSuan = medicineHuanSuan;
        this.medicineKeyword = medicineKeyword;
        this.medId = medId;
        this.status = status;
        this.lists = lists;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Medicine medicine = (Medicine) o;
        return mid == medicine.mid &&
                medicinePrice == medicine.medicinePrice &&
                medicineNum == medicine.medicineNum &&
                medicineMaxValue == medicine.medicineMaxValue &&
                medicineHuanSuan == medicine.medicineHuanSuan &&
                medId == medicine.medId &&
                Objects.equals(medicineName, medicine.medicineName) &&
                Objects.equals(medicineId, medicine.medicineId) &&
                Objects.equals(medicineType, medicine.medicineType) &&
                Objects.equals(medicineOtcType, medicine.medicineOtcType) &&
                Objects.equals(medicineCompany, medicine.medicineCompany) &&
                Objects.equals(medicineKeyword, medicine.medicineKeyword) &&
                Objects.equals(status, medicine.status) &&
                Objects.equals(lists, medicine.lists);
    }

    @Override
    public int hashCode() {
        return Objects.hash(mid, medicineName, medicineId, medicineType, medicineOtcType, medicineCompany, medicinePrice, medicineNum, medicineMaxValue, medicineHuanSuan, medicineKeyword, medId, status, lists);
    }

    @Override
    public String toString() {
        return "Medicine{" +
                "mid=" + mid +
                ", medicineName='" + medicineName + '\'' +
                ", medicineId='" + medicineId + '\'' +
                ", medicineType='" + medicineType + '\'' +
                ", medicineOtcType='" + medicineOtcType + '\'' +
                ", medicineCompany='" + medicineCompany + '\'' +
                ", medicinePrice=" + medicinePrice +
                ", medicineNum=" + medicineNum +
                ", medicineMaxValue=" + medicineMaxValue +
                ", medicineHuanSuan=" + medicineHuanSuan +
                ", medicineKeyword='" + medicineKeyword + '\'' +
                ", medId=" + medId +
                ", status='" + status + '\'' +
                ", lists=" + lists +
                '}';
    }
}
